package com.pool;

public class Resource {
	private int port;
	
	private String ip;
	
	public Resource(int port, String ip) {
		super();
		this.port = port;
		this.ip = ip;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public void connect() {
		System.out.println("trying to connect");
	}
	public void close() {
		System.out.println("release the resource");
	}
	public boolean isConnect() {
		if(ip != null) {
			System.out.println("is connected");
			return true;
		}
		System.out.println("not connected");
		return false;
	}
	
}
